<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div style="text-align: center">
    <iframe th:src="@{/static/pdfjs/web/viewer.html(file=('/static/'+${filepath}))}"
            style="width: 1000px;height: 1000px">
    </iframe>
</div>
<form th:action="@{/print}" method="post">
    <div style="text-align: center">
        <select name="printPageType">
            <option value="single">单页</option>
            <option value="double">双页</option>
        </select>
        <select name="printColorType">
            <option value="none">黑白</option>
            <option value="color">彩印</option>
        </select>
        <select name="printCount">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>
            <option value="10">10</option>
        </select>
    </div>

    <div style="text-align: center">

        <h3 th:text="${'共'+page+'页'}"></h3>
        <input type="submit" th:value="打印">
        <input type="hidden" name="filepath" th:value="${filepath}">
        <input type="hidden" name="page" th:value="${page}">
        <input type="hidden" name="fileId" th:value="${fileId}">

    </div>
</form>
</body>
</html>